import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from "element-plus/es/locale/lang/zh-cn";
import 'dayjs/locale/zh-cn'
import App from './App.vue'
import router from './router'
import Header from './components/header.vue' 
import dayjs from 'dayjs'

const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(createPinia())
app.use(router)
// 2：全局注册组件
app.component('Header', Header)
app.config.globalProperties.day=dayjs//全局挂载
app.mount('#app')

